'use strict'

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
	const { router, controller } = app
	const { urlSysm } = app.config.baseUrl
	const subRouter = router.namespace(urlSysm + '/role')
	subRouter.get('/list', controller.role.list)
	subRouter.get('/listAll', controller.role.listAll)
	subRouter.get('/findLike', controller.role.findLike)
	subRouter.post('/add', controller.role.add)
	subRouter.post('/update', controller.role.update)
	subRouter.post('/del', controller.role.del)
	subRouter.post('/updateList', controller.role.updateList)
	// subRouter.get('/detail/:id', controller.artical.detail)
}
